from django.conf.urls import patterns, include, url
from django.contrib import admin

# Copyright 2013 Medicloud team
# Alex - Used to automatically detect admin.py and set up models/groups
admin.autodiscover()

urlpatterns = patterns('',
    # Alex - Including the admin site urls; not needed if you don't want the admin site enabled
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^$', 'app.views.index', name='home'),
    url(r'^login/?$', 'django.contrib.auth.views.login', name='login'),
    url(r'^register/patient$', 'app.views.register_patient', name='register'),
    url(r'^register/doctor$', 'app.views.register_doctor', name='register'),
    url(r'^register/staff$', 'app.views.register_staff', name='register'),
    url(r'^login/sms/?$', 'app.views.send_sms', name='send_sms'),
    url(r'^login/sms/check/?', 'app.views.check_sms', name='check_sms'),
    url(r'^logout/?', 'app.views.logout_view', name='logout'),
    url(r'^profile/?$', 'app.views.profile', name='profile'),
    url(r'^profile/edit/?$', 'app.views.profile_edit', name='profile_edit'),
    url(r'^profile/records/?$', 'app.views.profile_records', name='profile_records'),
    url(r'^about/?$', 'app.views.about', name='about'),
    url(r'^contact/?$', 'app.views.contact', name='contact'),
    url(r'^api/patient/?', 'app.api.views.patient', name='patient')

    # Examples:
    # url(r'^medicloud/', include('medicloud.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
